home *** CD-ROM | disk | FTP | other *** search
/ New Star Software Collection / NSS_Collection.iso / 3-069 qemm 603 / 1.ima / DV386 / CH2.DEQ < prev    next >
Encoding:
Text File  |  1991-10-07  |  12.2 KB  |  256 lines

  1. Chapter 2
  2.  
  3. Changing A Program's Information
  4.  
  5. ~Subhead~      Optimizing 80386 Performance
  6.  
  7.  Change a Program options which affect program performance on an 80386 or
  8. i486 are as follows:
  9.  
  10. ~Item~ Writes text directly to the screen, which tells DESQview 386 whether
  11. a non-virtualized program is well-behaved or not.
  12.  
  13. ~Item~ Virtualize text/graphics, which tells DESQview 386 whether to run
  14. text, CGA, MCGA, Hercules, EGA and VGA programs in a small window.
  15.  
  16. ~Item~ Runs in background, which tells DESQview 386 to allow a program to run
  17. in the background. 
  18.  
  19. ~Item~ Share CPU when foreground, which tells DESQview 386 whether to run
  20. other programs in the background when this one is executing in the
  21. foreground.
  22.  
  23. ~Item~ Share EGA when foreground/zoomed, which tells DESQview 386 whether to
  24. allow other EGA programs to use the EGA hardware when this one is executing
  25. full screen in foreground.
  26.  
  27. ~Item~ Protection level, which tells DESQview whether to initiate extra
  28. protection against possible program misbehavior.
  29.  
  30. ~Item~ Uses its own colors, which tells DESQview what color palette to invoke
  31. when the program is running in foreground.
  32.  
  33.  If a program is listed on DESQview's Add a Program menu ~dash~ or if you
  34. have a DESQview Program Information File (DVP) for the program- ~dash~
  35. DESQview has already set default program information for your program.
  36. DESQview's default settings, which affect 80386 performance, are as follows:
  37.  
  38. ~Begin Table~                  
  39. Option                                  Setting        
  40. Writes text directly to the screen      Yes       
  41. Virtualize text/graphics                Yes  
  42. Runs in background                      Blank     
  43. Uses its own colors                     No   
  44. Share CPU when foreground               Yes       
  45. Share EGA when foreground/zoomed        No        
  46. Protection level                        0     
  47.  
  48. ~End Table~
  49.  
  50.  If you wish to change these default settings, then you must use DESQview's
  51. Change a Program to modify them. 
  52.  
  53.  NOTE: The changes you make to a program's information file do not apply to
  54. a program already running when you used the Change a Program command. They
  55. only apply the next time you start up the program (from the Open Window
  56. menu).  You can use the Tune Performance command to temporarily change some
  57. of these settings for programs currently running.
  58.  
  59.  When you change a program's information, the old DESQview Program
  60. Information File (DVP) for the program is saved as a backup file (BAK) and
  61. then a new DVP file is created containing the changed information.
  62.  
  63. ~Subhead~      When a Program  Writes Directly to Screen
  64.  
  65.  When your program displays information on the screen, it either does so
  66. using DOS or the BIOS (and is thus known as "well-behaved"), or it writes
  67. directly to the screen (and is known as "misbehaved"). "Well-behaved"
  68. programs run in DESQview windows ~dash~ on 8088, 8086, 80286 and 80386 PCs.
  69. "Misbehaved" programs write inside AND outside of the DESQview window area
  70. and therefore, require you to use them full screen.
  71.  
  72.  To find out whether or not your program can run in a small window usually
  73. requires experimentation. First set the Writes text directly to screen option
  74. to No (N) and the Virtualize text/graphics option to No (N). Then run your
  75. program in a small window. If the program writes outside of the DESQview
  76. window area, then it writes directly to the screen. You must then change the
  77. Writes text directly to screen option setting to Yes (Y). 
  78.  
  79.  With QEMM-386 DESQview can run all text programs that write directly to the
  80. screen in a DESQview window. For DESQview to do this you must set the
  81. Virtualize text/graphics option to Yes (Y). See below.
  82.  
  83.  NOTE: If your program runs in a small window normally, you get the best
  84. performance when you set Writes text directly to the screen to No and set
  85. Virtualize text/graphics to No.
  86.  
  87. ~Subhead~      Virtualizing Text & Graphics
  88.  
  89.  When running DESQview 386 on an 80386 PC, any text, CGA, Hercules, EGA or
  90. VGA program can run in a "small window", even if it is not "well-behaved".
  91. DESQview's ability to run all programs in small windows is called
  92. "virtualization". For performance reasons, you can control what DESQview
  93. virtualizes.
  94.  
  95.  The Virtualize text/graphics (Y, N, T) option specifies, when Yes, that
  96. DESQview should keep the program from writing directly to the screen under
  97. all circumstances. The program can then display its information in DESQview
  98. windows and run in background.
  99.  
  100.  When you specify No, DESQview's action is dependent upon how you set the
  101. Writes text directly to screen option. If your program writes directly to the
  102. screen, DESQview will not run your program in a small window. If your program
  103. does not write directly to the screen, DESQview will run the program in a
  104. small window.
  105.  
  106.  When you specify (T), for text only, DESQview will virtualize the screen
  107. when your program is in text mode only. If your program switches from text
  108. mode to graphics mode, the screen virtualization will stop. This option
  109. allows a program to run in a small window when in text mode, but use the
  110. screen directly when in graphics mode. Text mode virtualization causes very
  111. little performance degradation, whereas graphics virtualization can affect
  112. performance considerably ~dash~ especially on EGA displays.
  113.  
  114. ~Subhead~      Sharing the Processor
  115.  
  116.  If you want maximum performance in your foreground program, you do not want
  117. other programs to be running in background.
  118.  
  119.  The Share CPU when in foreground option specifies, when Yes (Y), that you
  120. allow other programs to run in background when this program is executing in
  121. the foreground. 
  122.  
  123.  If you enter No (N) to Share the CPU, DESQview will freeze all programs
  124. running in background when the foreground program is executing.
  125.  
  126.  When the foreground program is not executing (for example, waiting for a
  127. keyboard character), then background programs will be allowed to run.
  128.  
  129.  You can dynamically change this option, using DESQview's Tune Performance
  130. command.
  131.  
  132. ~Subhead~      Sharing the EGA
  133.  
  134.  If you want maximum performance in your foreground graphics program, you do
  135. not want other programs to be sharing your EGA hardware.
  136.  
  137.  The Share EGA when in foreground/zoomed option specifies, when Yes (Y), for
  138. DESQview to allow other EGA graphics programs to run in background. If you
  139. enter no (N) to Share the EGA, DESQview will freeze EGA programs running in
  140. background when your program is zoomed. If you enter yes (Y), all EGA
  141. programs will run more slowly.
  142.  
  143.  You can dynamically change this option,  using DESQview's Tune Performance
  144. command.
  145.  
  146. ~Subhead~      Protecting  Programs from Each Other
  147.  
  148.  DESQview uses the 80386 processor's protection capabilities to give you
  149. protection against misbehaved programs. Protection can result in some
  150. performance degradation of your program. 
  151.  
  152.  DESQview will exercise more protection the higher the protection level
  153. selected. Selecting 0 tells DESQview not to set up any special protection
  154. around your program. If you know your program is reliable and works without
  155. crashing, we strongly suggest that you do not set up any protection.
  156.  
  157.  If DESQview 386 detects that the program is trying to do something which
  158. might damage DESQview, DOS, or other programs, DESQview will post an error
  159. message (prior to the damage being done) describing in technical terms the
  160. action that seemed dangerous. You may then abort the program, or turn off
  161. DESQview's protection and let the program proceed on its dangerous course.
  162. Sometimes you will be given a third option, of allowing this one violation to
  163. occur, but keeping the protection in place to detect further violations.
  164.  
  165.  Typically, you should abort the program if you get a protection violation.
  166. Then, try increasing the memory size for the program and try it again. If the
  167. violation no longer occurs, then the program probably required more memory
  168. than you had previously given it, but it failed to detect that it had
  169. insufficient memory. You might want to inform the program developer of this.
  170.  
  171.  If the protection violations continue, then perhaps the program has a bug in
  172. it, or perhaps it is doing something which, although potentially dangerous,
  173. is really all right. You can try lowering the protection level (or setting it
  174. to 0) and hope for the best.
  175.  
  176. ~Subhead~ Using a Program's Colors
  177.  
  178.  The Uses its own colors option specifies, when Yes, that the program has its
  179. own color scheme and that you wish to use this color scheme instead of the
  180. one that DESQview normally provides for the window (See Appendix A of the
  181. DESQview manual). The DESQview color scheme uses the standard IBM palette.
  182.  
  183.  If, outside of DESQview, you like the colors your program uses, you should
  184. select Yes (Y) for the Uses its own colors option. If you'd like DESQview to 
  185. display your program using colors from the DESQview palette, then you should
  186. select No (N).
  187.  
  188.  Graphics programs often have their own palette ~dash~ chosen by the
  189. developer. So that your graphics program has the same look and feel outside
  190. and inside DESQview, DESQview will use the palette of your graphics program
  191. when the program is zoomed to full screen.
  192.  
  193.  As you run multiple graphics programs in small windows in DESQview 386, you
  194. will notice that your programs often change colors ~dash~ when you bring up
  195. the DESQview menu or when you switch windows. The reason is that DESQview
  196. sets the entire display according to the palette specified by the foreground
  197. program.
  198.  
  199.  Two graphics programs, with palettes different from the IBM palette, are
  200. Microsoft Windows and Digital Research's GEM. Not only have these two
  201. programs redefined the palette ~dash~ but you'll notice that when you have
  202. Ventura Publisher (a GEM program) and Microsoft Excel (a Windows program) on
  203. the screen at the same time in small windows, switching to  Excel will cause
  204. Ventura to change from black characters on a white background to white colors
  205. on a black background.
  206.  
  207.  If you find that the graphics programs in background windows are unreadable
  208. or you are bothered by the colors, you can fine-tune the colors of 
  209. DESQview's palette and menus.
  210.  
  211.  To fine-tune the colors of your programs' colors and of DESQview menus, you
  212. have the following DESQview tools:
  213.  
  214. ~Item~ A DESQview palette program (DVPAL.COM) is included on your DESQview
  215. diskette and can be added to your Open Window menu by selecting "DESQview
  216. Pallette" from the Add a Program menu. This palette program lets you change
  217. the DESQview palette used in DESQview menus and used by those programs with
  218. No selected in the Uses it own colors option.
  219.  
  220. ~Begin footnote~
  221. You will have to add DESQview Palette to DESQview's Open Window menu using
  222. the Add a Program command.
  223. ~End footnote~
  224.  
  225.  Using the DESQview palette utility, you can create you favorite palette by
  226. choosing the intensity of blue, green and red in each color of the palette,
  227. restore the original DESQview palette, make the DESQview palette the same as
  228. the GEM or Windows palette, load and save palettes, and set blinking for on
  229. or off.
  230.  
  231. ~Begin footnote~
  232. Before using DESQview Palette, use Change a Program to set the Uses it own
  233. colors option to No and the Virtual text/graphics to Yes for the graphics
  234. programs whose colors you wish to change. Then open these graphics programs
  235. and put them in small windows so that you can see how their colors change as
  236. you change the palette. 
  237. ~End footnote~
  238.  
  239. ~Item~ DESQview Setup, Advanced Option, Colors lets you change the color
  240. scheme of each text window displayed using the DESQview palette and change
  241. the color scheme of DESQview's menus. 
  242.  
  243.  If you change the DESQview palette (using the above palette program), so
  244. that it is the same as Microsoft Window's palette, DESQview's menus will turn
  245. red. You can make these DESQview menus blue again by using the Colors option
  246. in DESQview Setup.
  247.  
  248. ~Subhead~      Running Programs in Background
  249.  
  250.  The Runs in Background option tells DESQview whether you want the program to
  251. run in the background, while you are working in another program. If this
  252. option is blank, DESQview will automatically determine if the program can run
  253. in background without disturbing the screen. However, if Writes text directly
  254. to screen is Y, then the program will not be allowed to run in background
  255. unless Virtualize is set to T or Y.
  256.